import request from '../http'
import requestUrl from '../requestUrl'
import requestParam from '../requestParam'
import isInteger from 'lodash/isInteger'
import axios from 'axios'


/**
 * 查找所有学校
 */
export function findAll() {
  return request({
    url:requestUrl('/university/findAll'),
    method:'get'
  });
}
/*
查找所有学校信息及其下属学院信息+条件查找（根据大学数量分页）
 */
export function findUniversityAndSchoolsByCondition2(params) {
  return request.post(requestUrl('/university/findUniversityAndSchoolsByCondition2'), params);
}
/*
添加一个大学
 */
export function addOne(params) {
  return request.post(requestUrl('/university/addOne'), params);
}
/*
删除一个大学
 */
export function removeOneChainById(params) {
  return request({
    url:requestUrl('university/removeOneChainById/'+params),
    method:'get'
  });
}
/*
编辑一个大学
 */
export function modifyOneById(params) {
  return request.post(requestUrl('/university/modifyOneById'), params);
}
